package org.leo.test.guava.eventbus.day1;

import com.google.common.eventbus.EventBus;
import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 *
 * </p>
 *
 * @Package: org.leo.test.guava.eventbus.day1
 * @ClassName: MultipleEventBusExample
 * @author: Li.Junlin
 * @date: 2019.12.16 11:21
 */
@Slf4j
public class MultipleEventBusExample {
    public static void main(String[] args) {
        final EventBus eventBus = new EventBus();
        eventBus.register(new MultipleEventListeners());
        log.info("post the string event.");
        eventBus.post("I am String event");
        log.info("post the int event.");
        eventBus.post(1000);
    }
}
